package cn.edu.csust.coursecard.controller;

import cn.edu.csust.coursecard.common.ReturnData;
import cn.edu.csust.coursecard.dao.LoopImgMapper;
import cn.edu.csust.coursecard.dao.entity.LoopImg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("loopImg")
public class LoopImgController {
    @Autowired
    LoopImgMapper loopImgMapper;

    @GetMapping("/getAll")
    public ReturnData getAllLoopImg(){
        List<LoopImg> imgList = loopImgMapper.selectAll();
        return ReturnData.success(imgList);
    }


}
